package com.group.eams.service;

import com.group.eams.entity.Employee;
import com.group.eams.util.Result;

import java.util.List;

/**
 * Created by zcy-fover on 2016/10/31.
 */
public interface IEmployeeService {

    /**
     *
     * @param account
     * @param password
     * @return
     */
    Employee findEmployeeByAccount(String account, String password);

    /**
     * 获取员工列表
     * @return
     */
    List<Employee> getEmployeeList();

    /**
     * 通过员工id查询员工
     * @param id
     * @return
     */
    Employee findEmployeeById(int id);

    /**
     * 添加员工
     * @param employee
     * @return
     */
    Result addEmployee(Employee employee);

    /**
     * 更新员工信息
     * @param employee
     * @return
     */
    Result updateEmployee(Employee employee);

    /**
     * 通过员工id删除员工
     * @param id
     * @return
     */
    Result deleteEmployeeById(int id);

    /**
     * 根据姓名查找
     * @param name 姓名
     * @return 返回集
     */
    List<Employee> getEmployeeByName(String name);

    /**
     * 通过性别查找
     * @param sex
     * @return
     */
    List<Employee> getEmployeeBySex(Integer sex);
}
